﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace ERPStore.NewsLetters.Models
{
	/// <summary>
	/// NewsLetter
	/// </summary>
    [DataContract]
	public class NewsLetter : ERPStore.Models.IModelIdentity
	{
		/// <summary>
		/// Identifiant interne de la news letter
		/// </summary>
		/// <value>The id.</value>
        [DataMember]
		public int Id { get; set; }

		/// <summary>
		/// Titre de la news letter
		/// </summary>
		/// <value>The name.</value>
        [DataMember]
		public string Title { get; set; }

		/// <summary>
		/// Nom du fichier de la news letter
		/// </summary>
		[DataMember]
		public string FileName { get; set; }

		/// <summary>
		/// Contenu de l'email
		/// </summary>
		/// <value>The content of the email.</value>
        [DataMember]
		public string Content { get; set; }

		/// <summary>
		/// Nom du fichier aspx
		/// </summary>
		/// <value>The name of the HTML content file.</value>
		public string ContentViewName { get; set; }

        /// <summary>
        /// Gestion des accès concurrentiels
        /// </summary>
        /// <value>The version.</value>
        [DataMember]
        public byte[] Version { get; set; }

		[DataMember]
		public DateTime CreationDate { get; set; }

		[DataMember]
		public DateTime LastUpdate { get; set; }

		[DataMember]
		public int OwnerId { get; set; }
	}
}
